type config_type = {
  porker: string[],
  rules: string,
  actor: {
    // 庄家
    banker: {
      // 初始金额
      initMoney: number,
      // 手牌点数和
      cardPoint: number,
    },
    // 玩家
    player: {
      // 初始金额
      initMoney: number,
      // 手牌点数和
      cardPoint: number,
    },
  },
};

// 黑杰克游戏配置信息
const Config: config_type = {
  // 红桃 黑桃 梅花 方片
  porker: [
    "h1",
    "h2",
    "h3",
    "h4",
    "h5",
    "h6",
    "h7",
    "h8",
    "h9",
    "h10",
    "hj",
    "hq",
    "hk",
    "s1",
    "s2",
    "s3",
    "s4",
    "s5",
    "s6",
    "s7",
    "s8",
    "s9",
    "s10",
    "sj",
    "sq",
    "sk",
    "c1",
    "c2",
    "c3",
    "c4",
    "c5",
    "c6",
    "c7",
    "c8",
    "c9",
    "c10",
    "cj",
    "cq",
    "ck",
    "d1",
    "d2",
    "d3",
    "d4",
    "d5",
    "d6",
    "d7",
    "d8",
    "d9",
    "d10",
    "dj",
    "dq",
    "dk",
  ],
  // 游戏规则说明
  rules:
    `Persona: Dealer PK player.<br>

    Rule details：At the beginning of the game, give the player 2 cards, and then give the dealer 2 cards (a clear card and a dark card).
    The game starts with the player's choice,
    Players can choose whether to continue to ask for cards or suspend cards according to the number of cards in their hands. If players choose to ask for cards, the system will issue them a card;
    If the player chooses to stop asking for cards, the dealer's hidden cards will be displayed. If the sum of dealer's card points is less than 19 (19 is the limit value of the dealer's total card value set by the system), 
    The system will automatically issue cards to the dealer until the sum of points is greater than or equal to 19. 
    The system will calculate the sum of the current points of the player or dealer every time the card is dealt, 
    The value of a card can be calculated as 1 or 11 under the condition of not exceeding the boundary and maximum card value as far as possible.<br>

    Victory conditions: In principle, whoever's point sum is equal to 21 first wins. When either party's point sum exceeds the boundary, it will lose the game and the other party will win.
    The player who wins can get back the bet and win 10 points from the dealer<br>, If the player fails, he loses the bet and all the bet goes to the dealer.<br>

    Bet description: The default bet is 10, If the player wins and has a black jack(The first two cards are an A and a 10 point card), the player can get three times the bet.`,
  actor: {
    // 庄家
    banker: {
      // 初始金额
      initMoney: 50,
      // 手牌点数和
      cardPoint: 0,
    },
    // 玩家
    player: {
      // 初始金额
      initMoney: 100,
      // 手牌点数和
      cardPoint: 0,
    },
  },
};

export default Config;
